Open
Conversation
5734197 to
0be2c53
Compare
Code reorganization to improve modularity: - Extract Action and KeyContext types from keybindings.rs to action.rs - Move CursorId from event.rs to cursor.rs - Add FileSystem trait for abstracting file I/O operations - Refactor Buffer to use FileSystem trait for portability - Add GrammarStore injection to GrammarRegistry for flexibility - Refactor HighlightEngine for better separation of concerns - Extract shared Language enum from highlighter.rs - Extend FsBackend trait with additional operations - Improve theme portability
Add WebAssembly support for running Fresh in browsers: - Add WASM feature flag and dependencies (ratzilla, syntect, wasm-bindgen) - Add syntect-based syntax highlighter for WASM builds - Add TextContentProvider trait for shared rendering - Add WASM module with browser integration via Ratzilla - Add virtual filesystem backend for browser environment - Add event adapter for browser keyboard/mouse events - Add web assets (styles.css) for browser UI - Add build scripts (wasm-build.sh, wasm-setup.sh) - Configure module gating for WASM-compatible vs runtime-only code - Add comprehensive design documentation Modules ungated for WASM: - input: action, command_registry, commands, fuzzy, input_history, position_history - view: margin, overlay, virtual_text, scroll_sync, text_content, theme, markdown - primitives: highlight_engine, line_iterator, snippet, text_property, word_navigation - model: buffer, cursor, event, marker, marker_tree, overlay, piece_tree, filesystem
9639234 to
e1bd765
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Comprehensive design for running Fresh editor in browsers via WebAssembly: